/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import Player.AIPlayer;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author llll
 */
public class UpdateThread extends Thread{
    final TronController tc;
    public UpdateThread(TronController tc){
        this.tc = tc;
    }
    public void run(){
        synchronized(tc){
            try {
                tc.update();
            } catch (InterruptedException ex) {
                Logger.getLogger(UpdateThread.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }
}
